package test;

import java.lang.reflect.Array;
import java.util.Arrays;

public class test {
	public static void main(String[] args) {
		String a = "Hello";
		byte[] bt = a.getBytes();
		StringBuffer sbf = new StringBuffer("Hello");
		StringBuilder sbd = new StringBuilder("Hello");
		
		String b = "HeLLO";
		String[] ch = a.split(" ", 3);
//		System.out.println(a.length());
//		System.out.println(a.charAt(2));
//		System.out.println(a.isEmpty());
//		System.out.println(a.contentEquals(sbf));
//		System.out.println(a.contentEquals(sbd));
//		System.out.println(a.equalsIgnoreCase(b));
//		System.out.println(a.startsWith("ll", 2));
//		System.out.println(a.startsWith("He"));
//		System.out.println(b.endsWith("LO"));
//		System.out.println(a.hashCode());
//		System.out.println(a.indexOf('l'));
//		System.out.println(a.lastIndexOf("l"));
//		System.out.println(a.substring(2, 5));
//
//		System.out.println(a.toLowerCase());
//		System.out.println(a.toUpperCase());
//		System.out.println();
		
		
		String str="hello";
		String str1=new String("hello");
		System.out.println(str=="hello");
		System.out.println(str1=="hello");
		
		int[] arr={1,2,3,5,6,8,9};
		int[] arr1=Arrays.copyOfRange(arr, 2, 5);
		for (int i : arr1) {
			System.out.println(i);
		}
		
		
		
	}

}
